part of 'index_bloc.dart';

sealed class IndexState extends Equatable {
  final int bodyIndex;

  const IndexState(this.bodyIndex);

  @override
  List<Object> get props => [bodyIndex];
  //重写props  props是否配置影响页面是否会更新,涉及到页面UI变更的参数写在props中
}

final class IndexInitial extends IndexState {
  const IndexInitial() : super(0);
}

final class IndexUpdate extends IndexState {
  const IndexUpdate(super.bodyIndex);
}
